Optimal. Leaf size=71 \[ \frac{\sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n}-\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0447823, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {5356, 5298, 2204, 2205} \[ \frac{\sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n}-\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5356
Rule 5298
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int x^{-1+\frac{n}{2}} \sinh \left (a+b x^n\right ) \, dx &=\frac{2 \operatorname{Subst}\left (\int \sinh \left (a+b x^2\right ) \, dx,x,x^{n/2}\right )}{n}\\ &=-\frac{\operatorname{Subst}\left (\int e^{-a-b x^2} \, dx,x,x^{n/2}\right )}{n}+\frac{\operatorname{Subst}\left (\int e^{a+b x^2} \, dx,x,x^{n/2}\right )}{n}\\ &=-\frac{e^{-a} \sqrt{\pi } \text{erf}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n}+\frac{e^a \sqrt{\pi } \text{erfi}\left (\sqrt{b} x^{n/2}\right )}{2 \sqrt{b} n}\\ \end{align*}
Mathematica [A] time = 1.50246, size = 60, normalized size = 0.85 \[ \frac{\sqrt{\pi } \left ((\sinh (a)-\cosh (a)) \text{Erf}\left (\sqrt{b} x^{n/2}\right )+(\sinh (a)+\cosh (a)) \text{Erfi}\left (\sqrt{b} x^{n/2}\right )\right )}{2 \sqrt{b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.057, size = 54, normalized size = 0.8 \begin{align*} -{\frac{{{\rm e}^{-a}}\sqrt{\pi }}{2\,n}{\it Erf} \left ({x}^{{\frac{n}{2}}}\sqrt{b} \right ){\frac{1}{\sqrt{b}}}}+{\frac{{{\rm e}^{a}}\sqrt{\pi }}{2\,n}{\it Erf} \left ( \sqrt{-b}{x}^{{\frac{n}{2}}} \right ){\frac{1}{\sqrt{-b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.3147, size = 93, normalized size = 1.31 \begin{align*} -\frac{\sqrt{\pi } x^{\frac{1}{2} \, n}{\left (\operatorname{erf}\left (\sqrt{b x^{n}}\right ) - 1\right )} e^{\left (-a\right )}}{2 \, \sqrt{b x^{n}} n} + \frac{\sqrt{\pi } x^{\frac{1}{2} \, n}{\left (\operatorname{erf}\left (\sqrt{-b x^{n}}\right ) - 1\right )} e^{a}}{2 \, \sqrt{-b x^{n}} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.95006, size = 333, normalized size = 4.69 \begin{align*} -\frac{\sqrt{\pi } \sqrt{-b}{\left (\cosh \left (a\right ) + \sinh \left (a\right )\right )} \operatorname{erf}\left (\sqrt{-b} x \cosh \left (\frac{1}{2} \,{\left (n - 2\right )} \log \left (x\right )\right ) + \sqrt{-b} x \sinh \left (\frac{1}{2} \,{\left (n - 2\right )} \log \left (x\right )\right )\right ) + \sqrt{\pi } \sqrt{b}{\left (\cosh \left (a\right ) - \sinh \left (a\right )\right )} \operatorname{erf}\left (\sqrt{b} x \cosh \left (\frac{1}{2} \,{\left (n - 2\right )} \log \left (x\right )\right ) + \sqrt{b} x \sinh \left (\frac{1}{2} \,{\left (n - 2\right )} \log \left (x\right )\right )\right )}{2 \, b n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{\frac{n}{2} - 1} \sinh{\left (a + b x^{n} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{\frac{1}{2} \, n - 1} \sinh \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]